package com.community.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
public class IndexAction {

    @RequestMapping("/admin")
    public void login(HttpServletResponse response) throws IOException  {
        response.sendRedirect("/admin/login.html");
    }

    @RequestMapping("/")
    public void index(HttpServletResponse response)  throws IOException {
        response.sendRedirect("/index.html");
    }


}
